package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Pub;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface PubMapper extends BaseMapper<Pub> {

    List<Pub> selectAllPub(@Param("name") String brand,
                           @Param("start") Integer start,
                           @Param("pageSize") Integer pageSize);//条件+分页查询

    int count(@Param("name") String brand);//条件查询总条数

    Integer updatePub(@Param("pub") Pub pub);

    Integer updatePub2(@Param("pub") Pub pub);

    Pub getPubById(@Param("id") Integer id);

}
